<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head><title>IGNORED</title></head>
	<body>
		<ui:composition>
			<h:form>
				<div class="form-row header">My Profile</div>
				<div class="form-row">
					<h:outputLabel for="profileEmail" styleClass="form-row">
						<ui:insert name="profile_email">#{msgs.customer_profile_email}</ui:insert>
					</h:outputLabel>
					<h:outputText id="profileEmail" style="font-weight: bold;" value="#{authenticationBean.userProfile.emailAddress}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileFirstName" styleClass="form-row">
						<ui:insert name="profile_firstName">#{msgs.customer_profile_firstName}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileFirstName" value="#{authenticationBean.userProfile.firstName}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileLastName" styleClass="form-row">
						<ui:insert name="profile_lastName">#{msgs.customer_profile_lastName}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileLastName" value="#{authenticationBean.userProfile.lastName}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileCompanyName" styleClass="form-row">
						<ui:insert name="profile_companyName">#{msgs.customer_profile_companyName}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileCompanyName" value="#{authenticationBean.userProfile.companyName}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileAddressLine1" styleClass="form-row">
						<ui:insert name="profile_addressLine1">#{msgs.customer_profile_addressLine1}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileAddressLine1" value="#{authenticationBean.userProfile.addressLine1}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileAddressLine2" styleClass="form-row">
						<ui:insert name="profile_addressLine2">#{msgs.customer_profile_addressLine2}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileAddressLine2" value="#{authenticationBean.userProfile.addressLine2}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileAddressCity" styleClass="form-row">
						<ui:insert name="profile_addressCity">#{msgs.customer_profile_addressCity}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileAddressCity" value="#{authenticationBean.userProfile.addressCity}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileAddressState" styleClass="form-row">
						<ui:insert name="profile_addressState">#{msgs.customer_profile_addressState}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileAddressState" value="#{authenticationBean.userProfile.addressState}" />
				</div>
				<div class="form-row">
					<h:outputLabel for="profileAddressZip" styleClass="form-row">
						<ui:insert name="profile_addressZipCode">#{msgs.customer_profile_addressZipCode}</ui:insert>
					</h:outputLabel>
					<h:inputText id="profileAddressZip" value="#{authenticationBean.userProfile.addressZipCode}" />
				</div>
				<div class="form-row submit">
					<h:link styleClass="image-button no-height" outcome="change-password"><h:graphicImage library="images/icons/16" name="key.png" alt="c" title="Change Password" styleClass="with-text" />Change Password</h:link>
					<h:commandLink styleClass="image-button no-height" action="#{authenticationBean.saveProfile}"><h:graphicImage library="images/icons/16" name="page_save.png" alt="s" title="Save" styleClass="with-text" />Save</h:commandLink>
				</div>
				<h:messages globalOnly="true" styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages good" />
			</h:form>
		</ui:composition>
    </body>
</html>
